
function User(name) {
  this.name = name;
}
// User.prototype = {
//   constructor: User,
//   show() {
//     console.log(this.name);
//   }
// };
User.prototype.show = function() {
  console.log(this.name);
};
// console.dir(User);
// console.log(User.prototype.__proto__ == Object.prototype);
// console.log(User.prototype.constructor == User);
let lisi = new User.prototype.constructor("李四");
lisi.show();

var wangwu = new (Object.getPrototypeOf(lisi).constructor)('王五')
console.log(wangwu)
var wangwu = new lisi.__proto__.constructor('王五2')
console.log(wangwu)
var wangwu = new lisi.constructor('王五3')
console.log(wangwu)



